﻿using DomainService.IService.Sys;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Utility;

namespace OverallAuth_WebApi.Controllers.Sys
{
    /// <summary>
    /// Sys_MenuTableCols 按钮
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    [ApiExplorerSettings(GroupName = "SysMenuTableCols")]
    public class SysMenuTableColsController : BaseController
    {
        #region 构造实列化

        /// <summary>
        /// 菜单数据列服务
        /// </summary>
        public ISysMenuTableColsService _sysMenuTableColsService;

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="sysMenuTableColsService"></param>
        public SysMenuTableColsController(ISysMenuTableColsService sysMenuTableColsService)
        {
            _sysMenuTableColsService = sysMenuTableColsService;
        }

        #endregion

        #region 接口

        /// <summary>
        /// 反射同步数据列
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public ReceiveStatus ReflexSynchronousCols()
        {
            return _sysMenuTableColsService.ReflexSynchronousCols(GetLoginUserMsg().CorporationKey ?? string.Empty, "6E746ED0-12E9-4002-9887-D84A19142304");
        }

        #endregion

    }
}
